#include "IntroState.h"

IntroState::IntroState(){
}

IntroState::~IntroState(){
}

void IntroState::initialize(){
	GameState::initialize();
	glClearColor(1.0f, 0.0f, 0.0f, 1.0f);
	glClearDepth(1.0f);
}

void IntroState::cleanup(){
}

StateType IntroState::events(){
	for(const int * ix = keys; ix != keys + keySize; ++ix){
		if(eventHandler.keyPressEvent(*ix) == KEY_PRESSED){
			return STATE_MENU;
		}
	}
	return NULL_STATE;
}

StateType IntroState::run(){
	GameState::run();
	StateType newState = events();
	if(newState != NULL_STATE){
		return newState;
	}
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	return NULL_STATE;
}